setInterpolator

open fun setInterpolator(context: Context, @InterpolatorRes resID: Int)(source)

Sets the acceleration curve for the indeterminate animation.

The interpolator is loaded as a resource from the specified context. Defaults to a linear interpolation.

The interpolator only affects the indeterminate animation if the supplied indeterminate drawable does not implement Animatable.

This call must be made before the indeterminate animation starts for it to have an affect.

Parameters

context

The application environment

resID

The resource identifier of the interpolator to load

See also


open fun setInterpolator(interpolator: Interpolator)(source)

Sets the acceleration curve for the indeterminate animation. Defaults to a linear interpolation.

The interpolator only affects the indeterminate animation if the supplied indeterminate drawable does not implement Animatable.

This call must be made before the indeterminate animation starts for it to have an affect.

Parameters

interpolator

The interpolator which defines the acceleration curve

See also